package com.moyun.finance.repository;

import com.moyun.finance.entity.Customer;
import com.moyun.finance.entity.Product;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ProductRepository extends JpaRepository<Product,String>, JpaSpecificationExecutor<Product> {
    List<Product> findByCompanyId(String companyId);
    List<Product> findByCompanyIdAndProductNameLike(String companyId, String productName);
    List<Product> findByCompanyIdAndAllTypeId(String companyId, String allTypeId);
}
